package thread.test1BaseThread.domain;

public class MyThread5 implements Runnable {

	private volatile boolean stop=false;

	@Override
	public void run() {
		int i = 0;
		while(!stop){
			System.out.println(i);
			i++;
		}
	}

	public void setStop(boolean stop){
		this.stop = stop;
	}
}

